x86/shadow: unconditionally set the p2m/log-dirty allocation functions.
authorTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Feb 2011 09:48:05 +0000 (09:48 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Feb 2011 09:48:05 +0000 (09:48 +0000)
commitbc6595da1a5cacee189bc83ea972a125f76f65e9
tree9f772c9e7dc13c0cf3b5d405ee1fcc5a242cb161
parentb58852fcd8b447ed5bef3a6c7c0476454ade0b16
x86/shadow: unconditionally set the p2m/log-dirty allocation functions.

Otherwise enabling log-dirty mode on a PV guest that already has
a shadow allocation can leave the alloc/free functions pointers NULL,
and later try to dereference them.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/shadow/common.c